﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ELearningSystem.UI.AdminUI
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Cache.SetNoStore();
        }

        protected void addTopicLinkButton_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/AdminUI/AdminHomePageUI.aspx");
        }

        protected void addContentLinkButton_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/AdminUI/AddContentUI.aspx");
        }

        protected void signOutLinkButton_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            Response.Cache.SetNoStore();
            Response.Redirect("~/User/HomePage.aspx");
        }
    }
}
